package com.paypal.android.a;

import android.content.Context;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.widget.LinearLayout.LayoutParams;
import android.widget.TextView;
import com.paypal.android.MEP.e;
import com.paypal.android.MEP.h;
import com.paypal.android.MEP.l;
import com.paypal.android.MEP.m;
import java.util.ArrayList;

public final class q
{
  public static TextView a(r paramr, Context paramContext)
  {
    Rect localRect1 = new Rect(5, 2, 5, 3);
    Rect localRect2 = new Rect(0, 0, 0, 0);
    TextView localTextView1 = new TextView(paramContext);
    LinearLayout.LayoutParams localLayoutParams = new LinearLayout.LayoutParams(-1, -2, 0.5F);
    localLayoutParams.setMargins(localRect2.left, localRect2.top, localRect2.right, localRect2.bottom);
    localTextView1.setLayoutParams(localLayoutParams);
    localTextView1.setBackgroundColor(0);
    localTextView1.setTextColor(-16777216);
    localTextView1.setGravity(3);
    localTextView1.setPadding(localRect1.left, localRect1.top, localRect1.right, localRect1.bottom);
    if ((paramr == r.a) || (paramr == r.c) || (paramr == r.e) || (paramr == r.g))
    {
      localTextView1.setTypeface(Typeface.create("Helvetica", 1));
      if ((paramr != r.a) && (paramr != r.b))
        break label232;
      localTextView1.setTextSize(16.0F);
    }
    while (true)
    {
      label176: TextView localTextView2 = localTextView1;
      label232: r localr1;
      do
      {
        r localr2;
        do
        {
          return localTextView2;
          if ((paramr == r.b) || (paramr == r.d) || (paramr == r.f))
            break;
          localr2 = r.h;
          localTextView2 = null;
        }
        while (paramr != localr2);
        localTextView1.setTypeface(Typeface.create("Helvetica", 0));
        break;
        if ((paramr == r.c) || (paramr == r.d))
        {
          localTextView1.setTextSize(14.0F);
          break label176;
        }
        if ((paramr == r.e) || (paramr == r.f))
        {
          localTextView1.setTextSize(12.0F);
          break label176;
        }
        if (paramr == r.g)
          break label301;
        localr1 = r.h;
        localTextView2 = null;
      }
      while (paramr != localr1);
      label301: localTextView1.setTextSize(10.0F);
    }
  }

  public static TextView b(r paramr, Context paramContext)
  {
    TextView localTextView = a(paramr, paramContext);
    e locale = e.a();
    h localh = locale.c();
    if (locale.A() == 3)
      localTextView.setText(locale.d().a());
    label549: label555: 
    while (true)
    {
      localTextView.setGravity(17);
      localTextView.setPadding(5, 2, 5, 3);
      return localTextView;
      if (locale.A() == 0)
      {
        if (locale.C())
        {
          localTextView.setText(j.a("ANDROID_send_to") + ": " + ((m)localh.b().get(0)).a());
        }
        else
        {
          String str6 = e.a().c().k();
          if ((str6 != null) && (str6.length() > 0))
          {
            localTextView.setText(str6);
          }
          else
          {
            String str7 = ((m)localh.b().get(0)).h();
            if ((str7 != null) && (str7.length() > 0))
              localTextView.setText(str7);
            else
              localTextView.setText(j.a("ANDROID_send_to") + ": " + ((m)localh.b().get(0)).a());
          }
        }
      }
      else if (locale.A() == 2)
      {
        String str4 = e.a().c().k();
        if ((str4 != null) && (str4.length() > 0))
        {
          localTextView.setText(str4);
        }
        else
        {
          String str5 = localh.g().h();
          if ((str5 != null) && (str5.length() > 0))
            localTextView.setText(str5);
          else
            localTextView.setText(j.a("ANDROID_send_to") + ": " + localh.g().a());
        }
      }
      else
      {
        String str1 = e.a().c().k();
        label377: int j;
        if ((str1 != null) && (str1.length() > 0))
        {
          localTextView.setText(str1);
          CharSequence localCharSequence = localTextView.getText();
          j = 0;
          if (localCharSequence != null)
          {
            int k = localTextView.getText().length();
            j = 0;
            if (k > 0)
              continue;
          }
        }
        else
        {
          while (true)
          {
            if (j >= localh.b().size())
              break label555;
            String str3 = ((m)localh.b().get(j)).a();
            if ((str3 != null) && (str3.length() > 0))
            {
              localTextView.setText(j.a("ANDROID_send_to") + ": " + str3);
              break;
              for (int i = 0; ; i++)
              {
                if (i >= localh.b().size())
                  break label549;
                String str2 = ((m)localh.b().get(i)).h();
                if ((str2 != null) && (str2.length() > 0))
                {
                  localTextView.setText(str2);
                  break;
                }
              }
              break label377;
            }
            j++;
          }
        }
      }
    }
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.paypal.android.a.q
 * JD-Core Version:    0.6.2
 */